package algorithm.markovLink;

import java.io.IOException;

import org.junit.Test;

public class GenerateWordTest {

	@Test
	public void test1() throws IOException {
		String path1 = ReadCorpusTest.class.getResource("corpus1").getPath();
		String path2 = ReadCorpusTest.class.getResource("corpus2").getPath();
		String path3 = ReadCorpusTest.class.getResource("corpus3").getPath();
		int[][] matrix = new ReadCorpus().read_corpus(path1, path2, path3);
		GenerateWord gw = new GenerateWord(matrix);
		for (int i = 0; i < 10; i++) {
			String word = gw.generate_word(5, 10);
			System.out.println(word);
		}
	}

}
